<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>vediosite</title>
<!-- // Stylesheets // -->
<link href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/ddsmoothmenu.css" />
<!-- // Javascript // -->
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/menu.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/contentslider.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/cufon-yui.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/Tahoma_400-Tahoma_700.font.js"></script>
</head>
<body>
    <?php if(isset($fbconfig)): ?>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
    FB.init({
        appId   : '<?php echo $facebook->getAppId(); ?>',
        session : <?php echo json_encode($fb_session); ?>, // don't refetch the session when PHP already has it
        status  : <?php echo $fbconfig['status']; ?>, // check login status
        cookie  : <?php echo $fbconfig['cookie']; ?>, // enable cookies to allow the server to access the session
        xfbml   : <?php echo $fbconfig['xfbml']; ?> // parse XFBML
    });

    // whenever the user logs in, we refresh the page
    FB.Event.subscribe('auth.login', function() {
        window.location.reload();
    });
};

(function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/<?php echo $fbconfig['lang']; ?>/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
}());
</script>
<?php endif; ?>
	<div id="wrapper_sec">
    	<!--Masterhead -->
        <div id="masthead">
        	<div class="logo"><a href="<?php echo Yii::app()->baseUrl; ?>"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/logo.gif" width="142" height="87" alt="" /></a></div>
			<div class="header_rightsec">
            	<div class="rightsec_1">
                	<div class="navigation">
                    	<div id="smoothmenu1" class="ddsmoothmenu">
                        	<ul>
                                <li><a class="home" href="index.html"><?php echo CHtml::encode(Yii::t('common', 'Video Today')); ?></a></li>
                            	<li><a href="listing.html"><?php echo CHtml::encode(Yii::t('common', 'Ad Videos')); ?></a></li>
                                <li><a href="#"><?php echo CHtml::encode(Yii::t('common', 'Earn Money')); ?></a></li>
                                <li class="dropdown"><a href="#"><?php echo CHtml::encode(Yii::t('common', 'Information')); ?></a>
                                	<ul>
                                		<li><a href="#"><?php echo CHtml::encode(Yii::t('common', 'About us')); ?></a></li>
                                        <li><a href="#"><?php echo CHtml::encode(Yii::t('common', 'Contact')); ?></a></li>
                                        <li><a href="#"><?php echo CHtml::encode(Yii::t('common', 'Networks')); ?></a></li>
                                    </ul>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <!--Top search-->
                    <div class="top_search">
                   		<input value="<?php echo CHtml::encode(Yii::t('common', 'Enter you keywords')); ?>" onfocus="if(this.value=='<?php echo CHtml::encode(Yii::t('common', 'Enter you keywords')); ?>') {this.value='';}"
                        onblur="if(this.value=='') {this.value='<?php echo CHtml::encode(Yii::t('common', 'Enter you keywords')); ?>';}"name="txt" type="text" />
                    	<a href="#" class="search"><?php echo CHtml::encode(Yii::t('common', 'Search')); ?></a>
                    </div>
                </div>
            	<div class="rightsec_2">
                    <ul class="toplinks">
                        <?php $this->widget('zii.widgets.CMenu',array(
                        'items'=>array(
                            array('url'=>'#', 'label'=>CHtml::encode(Yii::t('common', 'Browse'))),
                            array('url'=>'#', 'label'=>CHtml::encode(Yii::t('common', 'Upload'))),
                            array('url'=>Yii::app()->getModule('user')->loginUrl, 'label'=>Yii::app()->getModule('user')->t("Login"), 'visible'=>Yii::app()->user->isGuest),
                            array('url'=>Yii::app()->getModule('user')->registrationUrl, 'label'=>Yii::app()->getModule('user')->t("Register"), 'visible'=>Yii::app()->user->isGuest),
                            array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
                            array('url'=>Yii::app()->getModule('user')->logoutUrl, 'label'=>Yii::app()->getModule('user')->t("Logout").' ('.Yii::app()->user->name.')', 'visible'=>!Yii::app()->user->isGuest),
                            
                            ),
                            'lastItemCssClass'=>'last'
                        )); ?>
                    </ul>
                    <ul class="social_networks">
                        <li><a href="#">Upload</a></li>
                		<li class="share"><?php echo CHtml::encode(Yii::t('common', 'Share with us')); ?>:</li>
                        <li><a href="#"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/socialicon1.png" alt="" /> </a></li>
                        <li> <a href="#"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/socialicon2.png" alt="" /> </a></li>
                        <li> <a href="#"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/socialicon3.png" alt="" /> </a></li>
                        <li class="last"><a href="#"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/socialicon4.png" alt="" /></a></li>    
                    </ul>
                </div>
            </div>	        
			<div class="clear" ></div>
		</div>